﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/FrameMain.master" AutoEventWireup="true" Inherits="Project_List" Title="无标题页" Codebehind="List.aspx.cs" %>

<%@ Register Src="../Common/Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #list table tr td
        {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../common/images/icons/addnew.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="Label1" runat="server" Text="查看：" Font-Bold="true"></asp:Label>
            <asp:Repeater ID="rptStatus" runat="server" OnItemCommand="rptStatus_ItemCommand">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" Style="color: #999999" CommandArgument='<%#Eval("ID") %>'><%#Eval("Name") %></asp:LinkButton>
                </ItemTemplate>
                <SeparatorTemplate>
                    -
                </SeparatorTemplate>
            </asp:Repeater>
        </div>
        <div class="right">
            <asp:LinkButton ID="btnPre" runat="server" OnClick="btnPre_Click">LinkButton</asp:LinkButton>&nbsp;<asp:DropDownList
                ID="drpYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
            </asp:DropDownList>
            &nbsp;<asp:LinkButton ID="btnNext" runat="server" OnClick="btnNext_Click">LinkButton</asp:LinkButton>&nbsp;
        </div>
    </div>
    <asp:Panel ID="pnlStatus" runat="server" Width="100%" CssClass="message" Visible="false">
        <asp:Label ID="Label6" runat="server" Text="当前查看的状态是："></asp:Label>
        <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label></asp:Panel>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th style="width: 40px; text-align:center;" nowrap="nowrap">
                    <div style="width:40px;">重要性</div>
                </th>
                <th style=" width:30%;">
                    项目名称
                </th>
                <th style="width: 90px; text-align:center;" nowrap="nowrap">
                    项目经理
                </th>
                <th style="text-align:center;">
                    项目状态
                </th>
                <th style="width: 90px;" nowrap="nowrap">
                    开始日期
                </th>
                <th style="width: 90px;" nowrap="nowrap">
                    结束日期
                </th>
                <th style="width: 90px; text-align:center;" nowrap="nowrap">
                    相关
                </th>
                <th style="width:80px; text-align:center;" nowrap="nowrap">
                    操作
                    </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" OnItemDataBound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;<asp:HiddenField ID="hidStatus" runat="server" Value='<%# Eval("Status") %>' />
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td style="text-align:center;">
                            <%#(Jzy.Model.Project.PrjImportance)(int)Eval("Importance") %>&nbsp;
                        </td>
                        <td nowrap="nowrap">
                            <asp:HyperLink ID="lnkName" runat="server"><%#Eval("Name") %></asp:HyperLink>&nbsp;                           
                        </td>
                        <td style="text-align:center;">
                            <%#Eval("PMName") %>&nbsp;
                        </td>
                        <td style="text-align:center;">
                            <asp:Label ID="lblStatus" runat="server" Text='<%#(Jzy.Model.Project.PrjStatus)(int)Eval("Status") %>'></asp:Label></td>
                        <td>
                            <%#Eval("StartTime","{0:yyyy-MM-dd}") %>&nbsp;
                        </td>
                        <td>
                            <%#Eval("EndTime","{0:yyyy-MM-dd}") %>&nbsp;
                        </td>
                        <td style="text-align:center;" nowrap="nowrap">
                            <asp:HyperLink ID="lnkView" runat="server" >详细</asp:HyperLink>
                            <asp:HyperLink ID="lnkSchedule" runat="server">进度</asp:HyperLink>                           
                            <asp:HyperLink ID="lnkAttach" runat="server">附件</asp:HyperLink>
                        </td>
                        <td style="text-align:center;">                            
                            <asp:HyperLink ID="lnkEdit" runat="server">修改</asp:HyperLink>
                        </td>
                    </tr>
                    <tr runat="server" id="trSchedule">
                        <td colspan="10" style="padding: 0px 30px 0px 40px;">
                            <div style="float: left;">
                                最新进展&nbsp;(<%#Eval("ScheduleUserName")%>)：<%#Eval("ScheduleRemark")%></div>
                            <div style="float: right; padding-right: 30px;">
                                汇报日期：<%#Eval("ScheduleInputTime", "{0:d}")%></div>
                        </td>
                    </tr>
                    <tr id="trOversee" runat="server">
                        <td colspan="10" style="padding: 0px 30px 0px 40px; color: Red;">
                            <div style="float: left;">
                                最新督办&nbsp;(<%#Eval("OverseeUserName")%>)：<%#Eval("OverseeRemark")%></div>
                            <div style="float: right; padding-right: 30px;">
                                督办日期：<%#Eval("OverseeInputTime", "{0:d}")%></div>
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="10" class="empty">
                            没有项目
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" />
        <asp:Button ID="btnRefresh" runat="server" Text="刷新" OnClick="btnRefresh_Click" />
    </div>
</asp:Content>
